
<html>

<head>

</head>

<body>

</body>

<script>

function Factory(name,age){

this.name =name;
this.age =age;

}

Factory.prototype.say = function(){

console.log("my name is"+this.name,"my age is"+this.age)

}

let zs = new Factory('dd',18);

zs.say()

</script>
</html>

